{extend name='common/base'}
{block name="content"}
<div class="animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>数据表【{$tables}】详细信息</h5>
            </div>
            <div class="ibox-content">

                <form id="export-form" method="post" action="{:url('export')}">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>字段</th>
                            <th>类型</th>
                            <th>是否为空</th>
                            <th>约束</th>
                            <th>默认值</th>
                            <th>注释</th>
                        </tr>
                        </thead>
                        <tbody>
                        {notempty name="columns"}
                        {volist name="columns" key="ko" id="vo"}
                        <tr>
                            <td>{$ko}</td>
                            <td>{$vo.Field}</td>
                            <td>{$vo.Type}</td>
                            <td>{$vo.Null}</td>
                            <td>{$vo.Key}</td>
                            <td>{$vo.Default}</td>
                            <td>{$vo.Comment}</td>
                        </tr>
                        {/volist}
                        {else /}
                        <td colspan="7" class="text-center"> 暂未发现数据库表! </td>
                        {/notempty}
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
